package mof.gov.dmdc.view.searchadapter;

import oracle.adf.view.rich.component.rich.layout.RichPanelBox;

import org.apache.myfaces.trinidad.event.DisclosureEvent;

public class SearchStatus {
    private boolean disclosured = false;

    public void setDisclosured(boolean disclosured) {
        this.disclosured = disclosured;
    }

    public boolean isDisclosured() {
        return disclosured;
    }

    public void DisclosureListenner(DisclosureEvent disclosureEvent) {
        RichPanelBox panelBox = (RichPanelBox)disclosureEvent.getComponent();
        if (panelBox.isDisclosed()) {
            disclosured = true;
        } else {
            disclosured = false;
        }
    }
}
